<%@page import="java.util.LinkedList"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Namhoc"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>



<h2>Danh sách Năm học</h2>  
<div style="width: 100%;">

</div>
<table id="rounded-corner" summary="">
    <thead>
    <tr>
            <th scope="col" class="rounded-company">  </th>
            <th scope="col" class="rounded">Năm 1</th>
            <th scope="col" class="rounded">Năm 1</th>
             <th scope="col" class="rounded">Sửa</th>
              <th scope="col" class="rounded-q4">Xóa</th>
        </tr>
    </thead>       
    <tbody> 
        
    
        <%
DataWS a=new DataWS();
List<dktc_ws.Namhoc> nh =new LinkedList<dktc_ws.Namhoc>();
nh = a.laydanhsachnamhoc(-1);

for(int i=0;i<nh.size();i++)
       {
    dktc_ws.Namhoc item=nh.get(i);
%>

        <tr>
        	<td></td> 
                <td><%=item.getNam1()%></td> 
            <td><%=item.getNam2()%></td> 
            <td><a href="?page=edit_year&id=<%=item.getManamhoc()%>"><img src="images/user_edit.png" alt="" title="" border="0" /></a></td> 
            <td><a href="?page=delete_year&id=<%=item.getManamhoc()%>" class="ask"><img src="images/trash.png" alt="" title="" border="0" /></a></td> 
        </tr>      
    	      
        <%}%>         
    </tbody>
</table>
<a href="?page=add_year" class="bt_green"><span class="bt_green_lft"></span><strong>Thêm năm học mới</strong><span class="bt_green_r"></span></a> 
     <!--a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a--> 
        
</form>